//4:定义一个double类型的数组，长度是8，求数组中所有数的积
package ZUOYE0423;

import java.util.Scanner;

public class 作业4 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入8个数：");
		double num[] = new double[8];
		double s = 1;
		for (int a = 0; a < num.length; a++) {
			num[a] = in.nextDouble();
			s = s * num[a];
		}
		System.out.println(s);
	}

}
